package services.tools;

import java.util.Map;

import org.h2.util.StringUtils;

public class ServiceUrlFormatter {
	
	public final static String format(String url, Map<String,String[]> params){
		if(params != null && url != null) {
			for(String key : params.keySet()){
				String value = StringUtils.arrayCombine(params.get(key),'/');
				url = url.replaceAll("@" + key, value);
			}
		}	
		return url;
	}
}
